﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FramePage.aspx.cs" Inherits="Web.Views.ArchiveManage.FramePage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
 <iframe id="iframe1" width="100%"  frameborder="0"  scrolling="no" onload="reinitIframe()" src=""></iframe>
        <script type="text/javascript">
            var _url = window.location.href;
            var r = (new Date()).getTime();
            var _iframe = document.getElementsByTagName('iframe')[0];
            var param = "src=";
            var index = _url.indexOf(param);
            if (index > 0) {
                var url = _url.substring(index + param.length, _url.length);
                _iframe.src = url + "&r=" + r + "";
            }

            function reinitIframe() {
                //初始化iframe  _iframe为页面上的iframe
                var iframe = _iframe;

                try {

                    iframe.height = iframe.contentWindow.document.documentElement.scrollHeight;

                } catch (ex) { }

            }

            //window.setInterval("reinitIframe()", 200);


    </script>
    </div>
    </form>
</body>
</html>
